package com.example.demo;

import org.noear.nami.annotation.NamiBody;
import org.noear.nami.annotation.NamiClient;
import org.noear.nami.annotation.NamiMapping;

import java.util.Map;

/**
 * @author airhead
 */
@NamiClient(url = "http://127.0.0.1:8081/demo")
public interface DemoClient {
  @NamiMapping(value = "POST hello")
  String hello(String welcome, String name);

  @NamiMapping(value = "POST hello2")
  String hello2(@NamiBody Map<String, String> body);

  @NamiMapping(value = "POST hello3")
  String hello3(String welcome, @NamiBody Map<String, String> body);
}
